import { createRouter, createWebHashHistory } from 'vue-router';
import rej from '../plugins/batch-reject/batch-reject.vue';
import conReports from '../plugins/batch-conf-draft-report/conDraftReports.vue';
import Settings from '../views/settings.vue';
import Home from '../views/home.vue';
import Market from '../views/Market.vue'
// import Market from '../views/pluginMarket.vue'

export default createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path: '/market',
      name: 'market',
      component: Market
    },
    {
      path: '/settings',
      name: 'Settings',
      component: Settings
    },
    // 通配符路由
    {
      path: '/plugins/:pluginName',
      name: 'Plugin',
      component: () => import('../views/PluginLoader.vue')
    }
  ]
});

